Skip to content

refactor(actions): adopt unified CompositeToolCallBase template, fix safety/threading, and clean dead code - #24

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup
Nov 23, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Phase 2 full-codebase cleanup & Water-Dispenser refactor verified locally across 1.6 & 1.7 builds and full test suite.

…safety/threading, and clean dead code

refactor: migrate composite tools to guarded execution template

Replace per-tool argument parsing and main-thread checks with Core's
CompositeToolExecutionTemplate via a new ExecuteDirectToolAsync helper,
so every composite tool shares cancellation, Unity main-thread guarding,
single-pass JSON parsing, and structured exception handling.

- Propagate TraceId into all RimMindError results and use
  ToolPolicyDenied for autonomy rejections
- Derive ActionsToolArgumentAdapter tool IDs/aliases from tool manifests
  instead of duplicated string lists
- Add ResourceSafetyGuard.CheckProjectConstructionSafety to aggregate
  stuffed and fixed material costs across multi-blueprint projects
- Classify survival recipes by products/specialProducts rather than
  defName heuristics; only restrict bills to explicitly requested pawns
- Delegate SpatialBuildingClassifier categories to
  BuildableStructureCatalogPolicy and make bottleneck suggestions
  discover structures dynamically
- Skip downed/mental-state pawns in actor resolution and triage doctor
  selection; require reachability before dispatching harvest jobs
- Convert source-inspection tests to behavioral tests against tool
  instances, and align test project with C# 9.0
- Rework deploy-single.ps1 for multi-version builds and clean runtime
  exclusions; drop deploy-single.sh and the csproj deploy target
- Remove obsolete SKILL.md and INTRODUCTION.txt docs
@mcocdaa
mcocdaa merged commit 3158166 into main Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mcocdaa
mcocdaa deleted the refactor/phase2-cleanup branch November 23, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant